<?php session_start();
if (!isset($_SESSION["txt_login"]))
{ print "<script type = 'text/javascript'> location.href = 'index.php'</script>"; exit();}


include "../conexao.php";

$id_vagas   =  $_GET["id_vagas"];

?>


<link rel="stylesheet" type="text/css" href="../estilo.css" />

 <?php       $buscar=mysql_query("select v.*, c.* from vagas v, cadastro_empresa c where v.id_cadastro_empresa = c.id_cadastro_empresa
			  and v.id_vagas = '$id_vagas'");
			 
			  while($linha_buscar=mysql_fetch_array($buscar)){
			  extract($linha_buscar);
		?>   
<div style=" width:780px; float:left;color:#FFFFFF; font-weight:bold;margin-left:13px;" id="caixa_5_colunas">
  <div style=" width:5px;height:27px;float:left; background-image: url(../imagens/bkgleft.gif); background-repeat:repeat;" id="borda_1_esquerda"></div>
  <div style=" width:75px;height:27px;float:left; background-image: url(../imagens/bkgazul.gif); background-repeat:repeat;" id="caixa_1">Data</div>
  <div style=" width:5px;height:27px;float:left; margin-right:1px;background-image: url(../imagens/bkgright.gif); background-repeat:repeat;" id="borda_1_direita"></div>
  <div style=" width:5px;height:27px;float:left; background-image: url(../imagens/bkgleft.gif); background-repeat:repeat;" id="borda_2_esquerda"></div>
  <div style=" width:210px;height:27px;float:left; background-image: url(../imagens/bkgazul.gif); background-repeat:repeat;" id="caixa_2">Titulo da Vaga</div>
  <div style=" width:5px;height:27px;float:left;margin-right:1px; background-image: url(../imagens/bkgright.gif); background-repeat:repeat;" id="borda_2_direita"></div>
  <div style=" width:5px;height:27px;float:left; background-image: url(../imagens/bkgleft.gif); background-repeat:repeat;" id="borda_3_esquerda"></div>
  <div style=" width:170px;height:27px;float:left; background-image: url(../imagens/bkgazul.gif); background-repeat:repeat;" id="caixa_3">Nome da Empresa</div>
  <div style=" width:5px;height:27px;float:left;margin-right:1px; background-image: url(../imagens/bkgright.gif); background-repeat:repeat;" id="borda_3_direita"></div>
  <div style=" width:5px;height:27px;float:left; background-image: url(../imagens/bkgleft.gif); background-repeat:repeat;" id="borda_4_esquerda"></div>
  <div style=" width:140px;height:27px;float:left; background-image: url(../imagens/bkgazul.gif); background-repeat:repeat;" id="caixa_4">Local (vaga)</div>
  <div style=" width:5px;height:27px;float:left;margin-right:2px; background-image: url(../imagens/bkgright.gif); background-repeat:repeat;" id="borda_4_direita"></div>
  <div style=" width:5px;height:27px;float:left; background-image: url(../imagens/bkgleft.gif); background-repeat:repeat;" id="borda_5_esquerda"></div>
  <div style=" width:125px;height:27px;float:left; background-image: url(../imagens/bkgazul.gif); background-repeat:repeat;" id="caixa_5">Sal&aacute;rio</div>
  <div style=" width:5px;height:27px;float:left; background-image: url(../imagens/bkgright.gif); background-repeat:repeat;" id="borda_5_direita"></div>
</div>
<div style=" width:774px; float:left; margin-top:2px;margin-left:13px;" id="caixa_5_colunas2">
  <div style=" width:81px;height:57px;float:left; border:1px solid #CCCCFF;" id="caixa_6">
    <div class="textos2" style="margin-left:4px; margin-top:20px;">
      <?php $da=explode("-",$data);echo $da[2]."/".$da[1]."/".$da[0];?>
    </div>
  </div>
  <div style=" width:219px;height:57px;float:left; border:1px solid #CCCCFF;" id="caixa_7">
    <div class="textos2" style="margin-left:60px; margin-top:17px;"><?php echo $cargo_vaga;?></div>
  </div>
  <div style=" width:180px;height:57px;float:left; border:1px solid #CCCCFF;" id="caixa_8">
    <div class="textos2"style="margin-left:60px; margin-top:17px;">
      <?php if($confidencial=="N"){echo $nome_fantasia;}elseif($confidencial=="S"){echo "confidencial";}?>
    </div>
  </div>
  <div style=" width:150px;height:57px;float:left; border:1px solid #CCCCFF;" id="caixa_9">
    <div class="textos2" style="margin-left:50px; margin-top:17px;"><?php echo $cidade_trabalho;?></div>
  </div>
  <div style=" width:132px;height:57px;float:left; border:1px solid #CCCCFF;" id="caixa_10">
    <?php if($salario!=""){?>
    <div class="textos2" style="margin-left:20px; margin-top:17px;"><?php echo "R$ ".number_format($salario,2,',','.');?></div>
    <?php }elseif($faixa_salarial!=""){?>
    <div class="textos2" style="margin-top:7px;"><?php echo $faixa_salarial; ?></div>
    <?php }?>
  </div>
</div>

<div style=" width:771px; float:left;border:1px solid #CCCCFF; text-transform:capitalize;background-color: #F8FCFC; margin-left:13px;">
  <div style=" width:700px; float:left; margin-top:2px; margin-left:15px; margin-top:10px; color:#FF6600; font-weight:bold;" align="left">Dados da Vaga</div>
  <div style=" width:755px; float:left; margin-top:4px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;">Titulo da Vaga:</div>
    <div class="textos"> <?php echo $cargo_vaga; ?></div>
  </div>
  <div style="width:755px;float:left; margin-top:3px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>Descri&ccedil;&atilde;o da Vaga: </div>
  <div class="textos" style="margin-left:15px; width:740px;border:1px solid #F0F0F0; background-color: #F1FEFE;" align="left"><?php echo $experiencias_qualificacoes;?></div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";> Benef&iacute;cios: </div>
    <div class="textos"><?php echo $beneficios;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>Regime Contrata&ccedil;&atilde;o:</div>
    <div class="textos"><?php echo $regime_contratacao;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:6px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>Hor&aacute;rio: </div>
    <div class="textos"><?php echo $horario_trabalho;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";> Informa&ccedil;&otilde;es Adicionais: </div>
    <div class="textos"><?php echo $info_adicionais;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";> Cursos e Qualifica&ccedil;&otilde;es: </div>
    <div class="textos"><?php echo $cursos_certificacoes;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>&Aacute;rea Profissional: </div>
    <div class="textos"><?php echo $area_profissional;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>Atividade que o funcion&aacute;rio ir&aacute; exercer: </div>
  <div class="textos" style="margin-left:15px; width:740px; border:1px solid #F0F0F0; background-color: #F1FEFE;" align="left"><?php echo $atividades_exercer;?></div>
  <div style=" width:700px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold; color:#FF6600" align="left";>Dados da Empresa onde o Candidato ir&aacute; trabalhar</div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>Nome da Empresa:</div>
    <div class="textos">
      <?php if($confidencial=="N"){echo $nome_fantasia;}elseif($confidencial=="S"){echo "confidencial";}?>
    </div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>Descri&ccedil;&atilde;o da Empresa:</div>
    <div class="textos"><?php echo $desc_empresa_q_trabalho;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>Site:</div>
    <div class="textos">
      <?php if($confidencial=="N"){echo "<a href=http://$site target=_blank>$site</a>";}elseif($confidencial=="S"){echo "confidencial";}?>
    </div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>Ramo de Atua&ccedil;&atilde;o:</div>
    <div class="textos"><?php echo $ramo_empresa;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>Nacionalidade:</div>
    <div class="textos"><?php echo $nacionalidade;?></div>
  </div>
  <div style=" width:755px; float:left; margin-top:2px; margin-left:15px; margin-bottom:6px;font-weight:bold;" align="left";>
    <div style=" width:210px; float:left;margin-top:2px;font-weight:bold;" align="left";>N&uacute;mero de funcion&aacute;rios:</div>
    <div class="textos"><?php echo $numero_funcionarios;?></div>
  </div>
  
</div>
<?php }?>